from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `menu` ADD `scopes` VARCHAR(32)   COMMENT '菜单权限标识';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `menu` DROP COLUMN `scopes`;"""
